//
//  ScrollViewContainer.m
//  ScrollViews
//
//  Created by cygarm on 15/6/8.
//  Copyright (c) 2015年 cygarm. All rights reserved.
//

#import "ScrollViewContainer.h"

@implementation ScrollViewContainer

@synthesize scrollView = _scrollView;

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    UIView *view = [super hitTest:point withEvent:event];
    if (view == self) {
//        NSLog(@"hitTest:scrollView container");
        return _scrollView;
    }
//    NSLog(@"hitTest:view");
    return view;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
